import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const payment: AppRouteModule = {
  path: '/payment',
  name: 'Payment',
  component: LAYOUT,
  redirect: '/payment/index',
  meta: {
    orderNo: 40,
    icon: 'ion:information-circle',
    title: '代付管理',
  },
  children: [
    {
      path: 'index',
      name: 'PaymentIndex',
      component: () => import('/@/views/payment/index.vue'),
      meta: {
        title: '正在抢单',
      },
    },
    {
      path: 'order',
      name: 'PaymentOrder',
      component: () => import('/@/views/payment/order.vue'),
      meta: {
        title: '代付订单管理',
      },
    },
    {
      path: 'add',
      name: 'PaymentAdd',
      component: () => import('/@/views/payment/add.vue'),
      meta: {
        title: '报备打款信息',
      },
    },
    {
      path: 'count',
      name: 'PaymentCount',
      component: () => import('/@/views/payment/count.vue'),
      meta: {
        title: '代付订单统计',
      },
    },
    {
      path: 'info',
      name: 'PaymentInfo',
      component: () => import('/@/views/payment/info.vue'),
      meta: {
        title: '代付通道信息',
      },
    },
  ],
};

export default payment;
